﻿/////*********************************************************************
//// *
//// *                             NOTICE
//// *               COPYRIGHT (c) 2012 Panoscopix Software, Inc.
//// *                UNPUBLISHED - ALL RIGHTS RESERVED
//// * 
//// *      This program is confidential, proprietary, and a trade
//// *   secret of Panoscopix Software, Inc. The receipt or possession of
//// *     this program does not convey any rights to reproduce or
//// *      disclose its contents, or to manufacture, use, or sell
//// *       anything that it may describe, in whole or in part, 
//// *   without the specific written consent of Panoscopix Software, Inc.
//// *
//// * Command class for "touching" a file, i.e., creating a file.
//// * 
//// *******************************************************************/
////using System;
////using System.Collections.Generic;
////using System.Linq;
////using System.Text;

////using FileSystem;
////using FileSystem.Utility;

////namespace FileSystem.Impl.Commands
////{
////    class Redo : IAction, IActionPrototype
////    {

////        private static void loadEmulator()
////        {
////            var zombie = new Redo(new HelpDescription() { Name = "redo", Description = "Redo last undone command." });
////            IActionPrototypeRegistry r = AppResources.getInstance().getActionRegistry();
////            r.register("redo", zombie);
////        }

////        public IHelpDescription Description
////        {
////            get;
////            private set;
////        }
////        private Redo(IHelpDescription helpDescription)
////        {
////            //for zombie
////            this.Description = helpDescription;
////        }
////        #region IAction Members

////        public IResult execute()
////        {
////            IResult result;

////            if (!AppResources.getInstance().getManager().undone().isEmpty())
////            {
////                var lastCommand = AppResources.getInstance().getManager().undone().pop();
////                lastCommand.redo();
////                AppResources.getInstance().getManager().done().push(lastCommand);
////                result = new Result(string.Format("Redo successfull - {0}", lastCommand.describe(new PrintContextImpl())));
////            }
////            else
////            {
////                result = new Result(true, "Nothing to redo");
////            }
////            return result;
////        }

////        #endregion

////        private Redo()
////        {

////        }
////        #region IActionPrototype Members

////        public IAction clone()
////        {
////            return new Redo();
////        }

////        public IAction clone(string arg)
////        {
////            return new Redo();
////        }

////        #endregion
////    }
////}
